
function detect(filename,trainedNet)

[x,fn,ext]=fileparts(filename)
[~,label,~]=fileparts(x)
[audioIn,fs]=audioread(filename)
audioData{1}=audioIn
audioData{2}=fs
audioData{3}=label
visualizeClassificationPipeline(audioData,trainedNet)
end